<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单h5新增控件</title>
</head>

<body>
    <form action="http://www.baidu.com">
        <input type="text" list="city">
        <datalist id="city">
             <option value="北京">北京</option>
             <option value="上海">上海</option>
             <option value="广州">广州</option>
             <option value="深圳">深圳</option>
             <option value="成都">成都</option>
         </datalist>
        <button autofocus="on" formaction="2.php">同意</button> 选择图片: <input type="file" multiple> 正则验证 <input type="text" pattern="^\d{6}$"> 必填:
        <input type="text" required/>
        <input type="submit" value="提交">
    </form>
</body>

</html>